package cc.comac.mom.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.QualityQarVerifyResultService;
import cc.comac.mom.bean.QualityQarVerifyResultBean;
import cc.comac.mom.entity.QualityQarVerifyEntity;
import cc.comac.mom.util.ResultBean;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping(value = "/QualityQarVerifyResult")
public class QualityQarVerifyResultController {

	@Autowired
	private QualityQarVerifyResultService qualityQarVerifyResultService;
	
	@ApiOperation("接口10 将对应工艺文件验证结果反馈到纠正措施平台")
	@RequestMapping("/sendCorrectiveActionResult")
	public ResultBean sendCorrectiveActionResult(@RequestBody QualityQarVerifyResultBean obj) {
		return qualityQarVerifyResultService.sendCorrectiveActionResult(obj);
	}
	
	@ApiOperation("查询纠正措施基本信息")
	@RequestMapping("/getVerificationInfo")
	public ResultBean getVerificationInfo(@RequestBody QualityQarVerifyResultBean obj) {
		return qualityQarVerifyResultService.getVerificationInfo(obj);
	}
	@ApiOperation("更新纠正措施信息")
	@RequestMapping("/updatearVerifyData")
	public ResultBean updatearVerifyData(@RequestBody QualityQarVerifyEntity qualityQarVerifyEntity) {
		return qualityQarVerifyResultService.updatearVerifyData(qualityQarVerifyEntity);
	}
}
